package com.wwl.generic;

import java.util.Hashtable;

public class HashTableDemo {
    public static void main(String[] args) {
        Hashtable<Integer,Employee> ht = new Hashtable<>();
        ht.put(101,new Employee(101,"Tom",5000.00));
        ht.put(102, new Employee(102,"Mike",3000.00));
        ht.put(103, new Employee(103,"Rose",8000.00));
        Employee e = ht.get(101);
        System.out.println(e);
        System.out.println(ht);
    }
}
